home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / MacGofer 0.22d / MacGofer Sources / gofc.make < prev    next >
Encoding:
Text File  |  1994-01-07  |  5.8 KB  |  247 lines  |  [TEXT/MPS ]

  1. #############################################################################
  2. #
  3. #    MacGofer Build file For MPW C/ASM
  4. #
  5. #    K. Hammond, January 31st. 1993
  6. #
  7. #############################################################################
  8.  
  9. #   File:       Gofer.make
  10. #   Target:     Gofer
  11. #   Created:    Thursday, January 2, 1992 4:06:24 pm
  12.  
  13. #   This makefile is set up for SADE debugging.
  14. #   MPW C/Link V3.2 are required for this.
  15. #   The MPW partition should be ≥ 1800K
  16. #   NB: linking is MUCH faster with sym off
  17.  
  18. #   I have abandoned trying to squeeze all the global data into 32K:
  19. #    Mark's changes in 2.28 made this unpleasant.  This adds about
  20. #    60K to the size of the application, and heap requirements,
  21. #    and may slow execution (since 32bit addresses rather than 16bit
  22. #    offsets from A5 are now required to address global variables).
  23.  
  24.  
  25. #    Use SYM = -sym on for debugging
  26.  
  27. SYM = -sym on
  28.  
  29. #    How to compile C programs
  30.  
  31. CC = C {SYM} -model far
  32.  
  33.  
  34. #############################################################################
  35. #
  36. #    Standard Gofer Header files
  37. #
  38. #############################################################################
  39.  
  40.  
  41. HDRS = prelude.h storage.h connect.h errors.h
  42.  
  43.  
  44.  
  45. #############################################################################
  46. #
  47. #    Standard Gofer Interpreter files
  48. #
  49. #############################################################################
  50.  
  51.  
  52. builtin.c.o ƒ     builtin.c prims.c {HDRS} mac_hdrs.h
  53.      {CC}      builtin.c
  54.  
  55. cbuiltin.c.o ƒ     cbuiltin.c prims.c {HDRS}
  56.      {CC}      cbuiltin.c
  57.  
  58. compiler.c.o ƒ     compiler.c {HDRS}
  59.      {CC}      compiler.c
  60.  
  61. gofer.c.o ƒ     gofer.c  machdep.c commonui.c {HDRS} command.h
  62.      {CC}      gofer.c
  63.  
  64. gofc.c.o ƒ     gofc.c  machdep.c commonui.c {HDRS} command.h
  65.      {CC}      gofc.c
  66.  
  67. input.c.o ƒ input.c  parser.c {HDRS} command.h
  68.      {CC}  input.c
  69.  
  70. machine.c.o ƒ    machine.c {HDRS}
  71.      {CC}      machine.c
  72.  
  73. cmachine.c.o ƒ    cmachine.c {HDRS}
  74.      {CC}      cmachine.c
  75.  
  76. output.c.o ƒ     output.c {HDRS}
  77.      {CC}      output.c
  78.  
  79. static.c.o ƒ     static.c {HDRS}
  80.      {CC}      static.c
  81.  
  82. storage.c.o ƒ storage.c {HDRS}
  83.      {CC}  storage.c
  84.  
  85. type.c.o ƒ type.c preds.c subst.c kind.c {HDRS}
  86.      {CC}  type.c
  87.  
  88.  
  89. #############################################################################
  90. #
  91. #     Gofer Runtime System
  92. #
  93. #############################################################################
  94.  
  95. runtime.c.o ƒ runtime.c {HDRS}
  96.      {CC}  runtime.c
  97.  
  98.  
  99. #############################################################################
  100. #
  101. #    Mac-specific files
  102. #
  103. #############################################################################
  104.  
  105. mac_dialogs.c.o ƒ mac_dialogs.c mac.h
  106.      {CC}  mac_dialogs.c
  107.  
  108. mac_files.c.o ƒ mac_files.c mac.h
  109.      {CC}  mac_files.c
  110.  
  111. mac_find.c.o ƒ mac_find.c mac.h
  112.      {CC}  mac_find.c
  113.  
  114. mac_humayan_utils.c.o ƒ mac_humayan_utils.c mac.h
  115.      {CC}  mac_humayan_utils.c
  116.  
  117. mac_io.c.o ƒ mac_io.c mac.h
  118.      {CC}  mac_io.c
  119.  
  120. mac_main.c.o ƒ mac_main.c mac.h
  121.      {CC}  mac_main.c
  122.  
  123. mac_menu.c.o ƒ mac_menu.c mac.h
  124.      {CC}  mac_menu.c
  125.  
  126. mac_options.c.o ƒ mac_options.c mac.h
  127.      {CC}  mac_options.c
  128.  
  129. mac_prefs.c.o ƒ mac_prefs.c mac.h
  130.      {CC}  mac_prefs.c
  131.  
  132. mac_print.c.o ƒ mac_print.c mac.h
  133.      {CC}  mac_print.c
  134.  
  135. mac_project.c.o ƒ mac_project.c mac.h
  136.      {CC}  mac_project.c
  137.  
  138. mac_scrap.c.o ƒ mac_scrap.c mac.h
  139.      {CC}  mac_scrap.c
  140.  
  141. mac_scroll.c.o ƒ mac_scroll.c mac.h
  142.      {CC}  mac_scroll.c
  143.  
  144. mac_SFMultiGet.c.o ƒ mac_SFMultiGet.c
  145.      {CC}  mac_SFMultiGet.c
  146.  
  147. mac_StrInit.c.o ƒ mac_StrInit.c mac.h
  148.      {CC}  mac_StrInit.c
  149.  
  150. mac_undo.c.o ƒ mac_undo.c mac.h
  151.      {CC}  mac_undo.c
  152.  
  153. mac_utils.c.o ƒ mac_utils.c mac.h
  154.      {CC}  mac_utils.c
  155.  
  156. mac_windows.c.o ƒ mac_windows.c mac.h
  157.      {CC}  mac_windows.c
  158.  
  159.  
  160. #############################################################################
  161. #
  162. #    Assembler file for C monad
  163. #
  164. #############################################################################
  165.  
  166. mac_trap.a.o ƒ mac_trap.a
  167.      Asm -case object -sym on mac_trap.a
  168.  
  169.  
  170.  
  171. #############################################################################
  172. #
  173. #    MacGofer Objects
  174. #
  175. #############################################################################
  176.  
  177. COMOBJS = compiler.c.o input.c.o output.c.o ∂
  178.       static.c.o storage.c.o type.c.o
  179.  
  180. IOBJECTS = builtin.c.o gofer.c.o machine.c.o {COMOBJS}
  181.       
  182. COBJECTS = cbuiltin.c.o gofc.c.o cmachine.c.o {COMOBJS}
  183.  
  184. MACOBJS = mac_main.c.o mac_menu.c.o mac_utils.c.o mac_windows.c.o ∂
  185.       mac_print.c.o mac_files.c.o mac_scroll.c.o mac_project.c.o ∂
  186.       mac_find.c.o mac_dialogs.c.o mac_io.c.o mac_undo.c.o mac_prefs.c.o ∂
  187.       mac_options.c.o mac_trap.a.o ∂
  188.       mac_humayan_utils.c.o mac_scrap.c.o ∂
  189.       mac_StrInit.c.o mac_SFMultiGet.c.o
  190.       
  191. ALLOBJS = {IOBJECTS} {MACOBJS}
  192.  
  193.  
  194. #############################################################################
  195. #
  196. #    How to make an MPW tool
  197. #
  198. #############################################################################
  199.  
  200. Gofer ƒƒ  {IOBJECTS} Gofer.Make
  201.     Link -w -ac 4 -ad 4 -srt -mf -model far ∂
  202.         -t 'MPST' -c 'MPS ' ∂
  203.         {IOBJECTS} ∂
  204.         "{Libraries}"Stubs.o ∂
  205.         "{Libraries}"Runtime.o ∂
  206.         "{Libraries}"Interface.o ∂
  207.         "{CLibraries}"StdCLib.o ∂
  208.         "{CLibraries}"CSANELib.o ∂
  209.         "{CLibraries}"Math.o ∂
  210.         "{Libraries}"ToolLibs.o ∂
  211.         -o Gofer
  212.  
  213. Gofc ƒƒ  {COBJECTS} Gofc.Make runtime.c.o
  214.     Link -w -ac 4 -ad 4 -srt -mf -model far ∂
  215.         -t 'MPST' -c 'MPS ' ∂
  216.         {COBJECTS} ∂
  217.         "{Libraries}"Stubs.o ∂
  218.         "{Libraries}"Runtime.o ∂
  219.         "{Libraries}"Interface.o ∂
  220.         "{CLibraries}"StdCLib.o ∂
  221.         "{CLibraries}"CSANELib.o ∂
  222.         "{CLibraries}"Math.o ∂
  223.         "{Libraries}"ToolLibs.o ∂
  224.         -o Gofc
  225.  
  226. #############################################################################
  227. #
  228. #    Linking MacGofer under MPW 3.2.  You need MacGofer.r for this
  229. #
  230. #############################################################################
  231.  
  232. MacGofer ƒƒ MacGofer.make MacGofer.r {ALLOBJS}
  233.     Duplicate -y MacGofer.r MacGofer
  234.     Link -w -ac 4 -ad 4 -srt -mf -model far ∂
  235.          -t APPL -c 'GFER' ∂
  236.          {SYM} ∂
  237.          -ra =resPreload ∂
  238.         {ALLOBJS} ∂
  239.         "{CLibraries}"CSANELib.o ∂
  240.         "{CLibraries}"Math.o ∂
  241.         "{CLibraries}"StdCLib.o ∂
  242.         "{Libraries}"Runtime.o ∂
  243.         "{Libraries}"Interface.o ∂
  244.         "{Libraries}"ToolLibs.o ∂
  245.         -o MacGofer
  246.  
  247.